/*
 * raw.c
 *
 *  Created on: 2025年4月4日
 *      Author: chenlenan
 */
#include "eth.h"
#include "raw.h"
uint32_t hello_cnt = 0;
uint8_t hello[1000];
extern int dorun;
void raw_init(void)
{
	dorun = 1;
	hello_cnt = 0;

	for(int i=0;i<996;i++)
	{
		hello[i + 4] = i;
	}
}
void raw_loop(void)
{
	hello[0] = hello_cnt>>24;
	hello[1] = hello_cnt>>16;
	hello[2] = hello_cnt>>8;
	hello[3] = hello_cnt>>0;
	EthWrPacket(hello,1000);
	hello_cnt++;
}
